Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Justesen 53 posts 162 karma points
    Oct 31, 2014 @ 14:08
    Simon Justesen
    0

    [umb7.1.8] Can't crop images

    Hi guys, 

    I'm trying to get the image cropper to work with umbraco 7.1.8 .. I've replaced the Upload datatype on the "Image"-media type with the cropper and made a custom crop called 'frontpage'.

    I can display the image with GetCropUrl("cropperalias","frontpage") .. But it is not cropped, when it is displayed. I also expected to see a cropped version in the media folder on the file system, but I can only find the original image. The cropper should be saving generated crops to the file system, right?

    TIA,
    Simon

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Oct 31, 2014 @ 14:12
    Jan Skovgaard
    100

    Hi Simon

    Have you had a look at the documentation for the Image cropper? http://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Image-Cropper

    What does your code for rendering the image look like? In the documentation above there should be plenty of examples on how to retrieve the cropped images etc.

    Hope this helps.

    /Jan

  • Jonas Boye 16 posts 126 karma points
    Oct 31, 2014 @ 14:21
    Jonas Boye
    0

    Did you upgrade Umbraco from 7.0.x  to 7.1.x?

    You might need to add a few lines in web.config

  • Simon Justesen 53 posts 162 karma points
    Oct 31, 2014 @ 14:22
    Simon Justesen
    0

    Jan: Yes I did (mis)read the documentation.. Too many parameters on GetCropUrl, as I was using UmbracoHelper.. 
    Should look like this @Umbraco.Media(heroImage).GetCropUrl("forside")
    Everything works now, thanks :D

     /Simon

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Oct 31, 2014 @ 14:25
    Jan Skovgaard
    0

    Hi Simon

    Glad to hear you godt it working :) Remember to mark the post as solved.

    Cheers, Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies